<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基础折线图</title>
    <style>
        #myecharts {
            width: 800px;
            height: 300px;
            /* background-color: rgb(95, 193, 232); */
            margin: 20px auto;
            padding: 50px;
            z-index: 10;
            background-image: url(./echarts//3.JPG);
            background-size: cover;
        }
    </style>
</head>

<body>
    <div id="myecharts"></div>
</body>
<script src="./a//echarts.min.js"></script>
<script>
    //获取 
    const myecharts = document.querySelector('#myecharts')
    // 初始化
    const charts = echarts.init(myecharts)
    // 配置图表
    const Option = {
        xAxis: {
            type: "category",
            data: [1, 2, 3, 4, 5, 6]
        },
        yAxis: {
            type: "value"
        },
        series: [{
            data: [520, 1314, 521, 666, 888, 999],
            type: 'line'
        }]
    }

    // 渲染图表
    charts.setOption(Option)
</script>

</html>